package com.z6pin.user.z6pinuser.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.z6pin.user.z6pinuser.domain.UserCoin;

@FeignClient("z6pin-coin")
public interface UserCoinService {
	@RequestMapping(method = RequestMethod.POST, value = "/saveCoin", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	int saveCoin(@RequestBody UserCoin userCoin);
	
	@RequestMapping(method = RequestMethod.POST, value = "/canInsert", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	String canInsert();
	
}
